<div class="clear"></div> 
<?php $language = (int)$this->config->get('config_language_id');?>
</div>
</div>

<!--Widgets Start-->
  <?php if($this->config->get('moderns_status')== 1) {
  	$moderns_facebook_id_box = $this->config->get('moderns_facebook_id_box');  
    $twitter_username = $this->config->get('twitter_username');
    $moderns_widget_id = $this->config->get('moderns_widget_id');
    $moderns_twitter_box_align = $this->config->get('moderns_twitter_box_align');
        
 	if((isset($moderns_facebook_id_box[$language]) && $moderns_facebook_id_box[$language] != '') || (isset($twitter_username[$language]) && $twitter_username[$language] != '')) { ?>
<div class="social-part">
<?php if((isset($twitter_username[$language]) && $twitter_username[$language] != '') || (isset($moderns_widget_id[$language]) && $moderns_widget_id[$language] != '')) { ?>
<div id="twitter_footer" class="<?php if($moderns_twitter_box_align[$language] == 1) { ?>twit-left<?php } ?><?php if($moderns_twitter_box_align[$language] == 2) { ?>twit-right<?php } ?>">
<div class="twitter_icon"></div>
<a class="twitter-timeline" href="https://twitter.com/<?php echo $twitter_username[$language];  ?>" data-chrome="nofooter noscrollbar transparent" data-theme="light" data-tweet-limit="2" data-related="twitterapi,twitter" data-aria-polite="assertive" data-widget-id="<?php echo $moderns_widget_id[$language];  ?>">Tweets by @<?php echo $twitter_username[$language];  ?></a>
		<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
    </div>
    <script>
    $(function(){        
        $("#twitter_footer.twit-right").hover(function(){            
        $("#twitter_footer.twit-right").stop(true, false).animate({right: "0" }, 800, 'easeOutQuint' );        
        },
  function(){            
        $("#twitter_footer.twit-right").stop(true, false).animate({right: "-241px" }, 800, 'easeInQuint' );        
        },1000);    
  });
  $(function(){        
        $("#twitter_footer.twit-left").hover(function(){            
        $("#twitter_footer.twit-left").stop(true, false).animate({left: "0" }, 800, 'easeOutQuint' );        
        },
  function(){            
        $("#twitter_footer.twit-left").stop(true, false).animate({left: "-241px" }, 800, 'easeInQuint' );        
        },1000);    
  });  
  </script>
    <?php } ?>
    
<?php if((isset($moderns_facebook_id_box[$language]) && $moderns_facebook_id_box[$language] != '')) { 
     $moderns_facebook_box_align = $this->config->get('moderns_facebook_box_align');
    ?>
<div id="facebook" class="<?php if($moderns_facebook_box_align[$language] == 1) { ?>fb-left<?php } ?><?php if($moderns_facebook_box_align[$language] == 2) { ?>fb-right<?php } ?>">
<div id="facebook_icon"></div>
<script src="//connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:fan profile_id="<?php echo $moderns_facebook_id_box[$language]; ?>" stream="0" connections="20" logobar="0" width="235" height="284" ></fb:fan>  
<script>
	  $(function(){        
        $("#facebook.fb-right").hover(function(){            
        $("#facebook.fb-right").stop(true, false).animate({right: "0" }, 800, 'easeOutQuint' );        
        },
  function(){            
        $("#facebook.fb-right").stop(true, false).animate({right: "-241px" }, 800, 'easeInQuint' );        
        },1000);    
  });
  $(function(){        
        $("#facebook.fb-left").hover(function(){            
        $("#facebook.fb-left").stop(true, false).animate({left: "0" }, 800, 'easeOutQuint' );        
        },
  function(){            
        $("#facebook.fb-left").stop(true, false).animate({left: "-241px" }, 800, 'easeInQuint' );        
        },1000);    
  });
	  </script>
      </div>
    <?php } ?>
  </div>
  <?php } ?>
  <?php } ?>
  <!--Widgets End-->

<div id="footer">
<div class="btn"><span></span></div>
 <div class="fpart-inner">
 
<?php if ($informations) { ?>
<div class="column">
<h3><?php echo $text_information; ?></h3>
    <ul>
      <?php foreach ($informations as $information) { ?>
      <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
      <?php } ?>
    </ul>
  </div>
  <?php } ?>
  <div class="column">
    <h3><?php echo $text_service; ?></h3>
    <ul>
      <li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
      <li><a href="<?php echo $return; ?>"><?php echo $text_return; ?></a></li>
      <li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>
    </ul>
  </div>
  <div class="column">
    <h3><?php echo $text_extra; ?></h3>
    <ul>
      <li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
      <li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
      <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
      <li><a href="<?php echo $special; ?>"><?php echo $text_special; ?></a></li>
    </ul>
  </div>
  <div class="column">
    <h3><?php echo $text_account; ?></h3>
    <ul>
      <li><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a></li>
      <li><a href="<?php echo $order; ?>"><?php echo $text_order; ?></a></li>
      <li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>
      <li><a href="<?php echo $newsletter; ?>"><?php echo $text_newsletter; ?></a></li>
    </ul>
  </div>
  <div class="column">
    <h3><?php echo $text_friend; ?></h3>
    <ul>
      <?php echo $text_friend_links; ?>
    </ul>
  </div>
  <?php
// If moderns module is enabled
if($this->config->get('moderns_status')== 1) {
$moderns_contact = $this->config->get('moderns_contact');
$moderns_address = $this->config->get('moderns_address');
$moderns_mobile = $this->config->get('moderns_mobile');
$moderns_email = $this->config->get('moderns_email');
 } ?>
  <div class="clear"></div>
</div>
</div>
<div class="footer-second-wrapp">
<div class="footer-second">
    <?php
// If moderns module is enabled
if($this->config->get('moderns_status')== 1) {

$moderns_paypal = $this->config->get('moderns_paypal');
$moderns_american = $this->config->get('moderns_american');
$moderns_2checkout = $this->config->get('moderns_2checkout');
$moderns_discover = $this->config->get('moderns_discover');
$moderns_maestro = $this->config->get('moderns_maestro');
$moderns_mastercard = $this->config->get('moderns_mastercard');
$moderns_sagepay = $this->config->get('moderns_sagepay');
$moderns_visa = $this->config->get('moderns_visa');
$moderns_moneybooker = $this->config->get('moderns_moneybooker');

if((isset($moderns_paypal[$language]) && $moderns_paypal[$language] != '') || (isset($moderns_american[$language]) && $moderns_american[$language] != '') || (isset($moderns_2checkout[$language]) && $moderns_2checkout[$language] != '') || (isset($moderns_discover[$language]) && $moderns_discover[$language] != '') || (isset($moderns_maestro[$language]) && $moderns_maestro[$language] != '') || (isset($moderns_mastercard[$language]) && $moderns_mastercard[$language] != '') || (isset($moderns_sagepay[$language]) && $moderns_sagepay[$language] != '') || (isset($moderns_visa[$language]) && $moderns_visa[$language] != '') || (isset($moderns_moneybooker[$language]) && $moderns_moneybooker[$language] != '') || (isset($moderns_visa[$language]) && $moderns_visa[$language] != '')) { ?>
    <div class="payments_types">
      <?php if(isset($moderns_paypal[$language]) && $moderns_paypal[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_paypal.png" alt="paypal" title="PayPal">
      <?php } ?>
      <?php if(isset($moderns_american[$language]) && $moderns_american[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_american.png" alt="american-express" title="American Express">
      <?php } ?>
      <?php if(isset($moderns_2checkout[$language]) && $moderns_2checkout[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_2checkout.png" alt="2checkout" title="2checkout">
      <?php } ?>
      <?php if(isset($moderns_maestro[$language]) && $moderns_maestro[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_maestro.png" alt="maestro" title="Maestro">
      <?php } ?>
      <?php if(isset($moderns_discover[$language]) && $moderns_discover[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_discover.png" alt="discover" title="Discover">
      <?php } ?>
      <?php if(isset($moderns_mastercard[$language]) && $moderns_mastercard[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_mastercard.png" alt="mastercard" title="MasterCard">
      <?php } ?>
      <?php if(isset($moderns_visa[$language]) && $moderns_visa[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_visa.png" alt="visa" title="Visa">
      <?php } ?>
      <?php if(isset($moderns_sagepay[$language]) && $moderns_sagepay[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_sagepay.png" alt="sagepay" title="sagepay">
      <?php } ?>
      <?php if(isset($moderns_moneybooker[$language]) && $moderns_moneybooker[$language] != '') { ?>
      <img src="catalog/view/theme/moderns/image/payment_moneybookers.png" alt="moneybookers" title="Moneybookers">
      <?php } ?>
    </div>
    <?php } ?>
    <?php } ?>
    <div id="powered">
<?php $moderns_powered = $this->config->get('moderns_powered'); if(isset($moderns_powered[$language])){echo html_entity_decode($moderns_powered[$language], ENT_QUOTES, 'UTF-8');} ?>
</div>
    <?php
// If moderns module is enabled
if($this->config->get('moderns_status')== 1) {

  $moderns_facebook_id = $this->config->get('moderns_facebook_id');  
  $moderns_twitter_username = $this->config->get('moderns_twitter_username');
  $moderns_gplus_id = $this->config->get('moderns_gplus_id');
  $moderns_pint_id = $this->config->get('moderns_pint_id');
  $moderns_rss = $this->config->get('moderns_rss');
  $moderns_vimeo = $this->config->get('moderns_vimeo');
  $moderns_flickr = $this->config->get('moderns_flickr');
  $moderns_youtube = $this->config->get('moderns_youtube');
  $moderns_skype = $this->config->get('moderns_skype');
  
	  
if((isset($moderns_facebook_id[$language]) && $moderns_facebook_id[$language] != '') || (isset($moderns_twitter_username[$language]) && $moderns_twitter_username[$language] != '') || (isset($moderns_gplus_id[$language]) && $moderns_gplus_id[$language] != '') || (isset($moderns_pint_id[$language]) && $moderns_pint_id[$language] != '') || (isset($moderns_rss[$language]) && $moderns_rss[$language] != '') || (isset($moderns_vimeo[$language]) && $moderns_vimeo[$language] != '') || (isset($moderns_flickr[$language]) && $moderns_flickr[$language] != '') || (isset($moderns_youtube[$language]) && $moderns_youtube[$language] != '') || (isset($moderns_skype[$language]) && $moderns_skype[$language] != '')) { ?>
    <div class="social">
      <?php if(isset($moderns_facebook_id[$language]) && $moderns_facebook_id[$language] != '') { ?>
      <a class="facebook" title="Facebook" href="http://facebook.com/<?php echo $moderns_facebook_id[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_twitter_username[$language]) && $moderns_twitter_username[$language] != '') { ?>
      <a class="twitter" title="Twitter" href="https://twitter.com/#!/<?php echo $moderns_twitter_username[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_gplus_id[$language]) && $moderns_gplus_id[$language] != '') { ?>
      <a class="googleplus" title="Google Plus" href="https://plus.google.com/u/0/<?php echo $moderns_gplus_id[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_pint_id[$language]) && $moderns_pint_id[$language] != '') { ?>
      <a class="pinterest" title="Pinterest" href="http://pinterest.com/<?php echo $moderns_pint_id[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_rss[$language]) && $moderns_rss[$language] != '') { ?>
      <a class="rss" title="Rss" href="<?php echo $moderns_rss[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_vimeo[$language]) && $moderns_vimeo[$language] != '') { ?>
      <a class="vimeo" title="Vimeo" href="http://www.vimeo.com/<?php echo $moderns_vimeo[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_flickr[$language]) && $moderns_flickr[$language] != '') { ?>
      <a class="flickr" title="Flickr" href="http://www.flickr.com/photos/<?php echo $moderns_flickr[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_youtube[$language]) && $moderns_youtube[$language] != '') { ?>
      <a class="youtube" title="You Tube" href="http://www.youtube.com/<?php echo $moderns_youtube[$language]; ?>" target="_blank"></a>
      <?php } ?>
      <?php if(isset($moderns_skype[$language]) && $moderns_skype[$language] != '') { ?>
      <a class="skype" title="Skype" href="skype:<?php echo $moderns_skype[$language]; ?>?call" target="_blank"></a>
      <?php } ?>
    </div>
    <?php } ?>
    <?php } ?>
  </div>
</div>
</div>
<?php if($this->config->get('moderns_overlay_pattern')== 1) { ?>
<div class="overlay-pattern"></div>
<?php } ?>
<script type="text/javascript" src="catalog/view/theme/moderns/js/cloud_zoom.js"></script>
<div style="display:none;">
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1253413051'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/z_stat.php%3Fid%3D1253413051' type='text/javascript'%3E%3C/script%3E"));</script>
</div>
</body>
</html>